include vroute_source.mak
include vroute_header.mak
include vroute_def.mak

#OBJS=$(addprefix ${OBJ_DIR}, $(patsubst %.cpp, %.o ,${SOURCE_FILES_CXX}))
OBJS=$(patsubst %.cpp, %.o ,${SOURCE_FILES_CXX})

.PHONY: clean build

build:${TARGET}
	@echo "build sucessfully"

${TARGET}:${OBJS}
	g++ ${CXXFLAG} -o $@ $^ 

clean:
	@echo "clean the project"
	@-rm -rf ${OBJS} ${TARGET}

${OBJS}:%.o:%.cpp
	@echo "now complie $< ==> $@"
	g++ $(CXXFLAG) -c -o $@ $< ${HEADER_DIRS} | tee -a ../logs/output.log

